/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ifpb.pp.rh.dao;

import java.util.Collection;
import java.util.Map;


public interface DAO{

    public Boolean salvar(Object obj)throws Exception;
    public Boolean remover(Object obj)throws Exception;
    public <T> T buscar( Class<T> classe, int id)throws Exception;
    public Boolean atualizar(Object obj)throws Exception;
    public <T> Collection <T> buscarTodos(Class<T> classe)throws Exception;
    public <T>Collection<T> executeQuery(Class<T> classe,String queryCondicao,Map<Integer,Object>param)throws Exception;
    public <T>Collection<T> consultaList(String query, Map<Integer, Object> param)throws Exception;
    public <T> T consultaSimples(String query, Map<Integer, Object> param)throws Exception;
    


}
